Bitmap icon = BitmapFactory.decodeResource(context.getResources(),
R.drawable.icon_resource);
Drawable d = new BitmapDrawable(getResources(), bitmap);
Bitmap icon = BitmapFactory.decodeResource(context.getResources(),
R.drawable.icon_resource);